package com.wpen.unit.web.dto.job;

import java.io.Serializable;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

import com.wpen.unit.commun.BaseRequest;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Schema(description = "依赖信息-新增列表(请求)")
@Data
@EqualsAndHashCode(callSuper=false)
public class DependonAddDependsRequest extends BaseRequest implements Serializable {
    private static final long serialVersionUID = 3748013572408380531L;

    @Schema(description =  "自身类型", required = true)
    @NotEmpty
    @Size(min = 0, max = 1)
    private String selfType;
    @Schema(description =  "业务系统编号", required = true)
    @NotEmpty
    @Size(min = 0, max = 16)
    private String bizCode;
    @Schema(description =  "批次编号", required = true)
    @NotEmpty
    @Size(min = 0, max = 16)
    private String batchCode;
    @Schema(description =  "任务编号", required = true)
    @NotEmpty
    @Size(min = 0, max = 16)
    private String taskCode;
    @Schema(description =  "任务作业编号", required = true)
    @NotEmpty
    @Size(min = 0, max = 16)
    private String jobCode;
    @Schema(description =  "依赖业务系统编号", required = true)
    @NotEmpty
    @Size(min = 0, max = 16)
    private String dpdonBizCode;
    @Schema(description =  "依赖批次编号", required = true)
    @NotEmpty
    @Size(min = 0, max = 16)
    private String dpdonBatchCode;
    @Schema(description =  "依赖任务编号", required = true)
    @NotEmpty
    @Size(min = 0, max = 16)
    private String dpdonTaskCode;
    @Schema(description =  "依赖作业编号", required = true)
    @NotEmpty
    @Size(min = 0, max = 16)
    private String dpdonJobCode;
    @Schema(description =  "启用状态", required = true)
    @NotEmpty
    @Size(min = 0, max = 1)
    private String enabled;

}